/*数据的存储*/
export function saveToLocal(id,key,val){
	let seller = window.localStorage._seller_;
	if(!seller){
		seller = {};
		seller[id] = {};
	}else{
		seller = JSON.parse(seller);
		if(!seller.id){
			seller[id] = {};
		}
	}
	seller[id][key] = val;
	localStorage._seller_ = JSON.stringify(seller);
}
/*数据的读取*/
export function loadFromLocal(id,key,def){
	let seller = window.localStorage._seller_;
	if(!seller){
		return def;
	}
	seller = JSON.parse(seller);
	if(!seller[id]){
		return def;
	}
	return seller[id][key] || def
}
